import request from '@/utils/request'

// 查询餐饮订单列表
export function listRestaurantOrder(query) {
  return request({
    url: '/system/restaurantOrder/list',
    method: 'get',
    params: query
  })
}

// 查询餐饮订单详细
export function getRestaurantOrder(id) {
  return request({
    url: '/system/restaurantOrder/' + id,
    method: 'get'
  })
}
// 审核餐饮订单
export function audit(id) {
  return request({
    url: '/system/restaurantOrder/audit/' + id,
    method: 'put',
  })
}
// 新增餐饮订单
export function addRestaurantOrder(data) {
  return request({
    url: '/system/restaurantOrder',
    method: 'post',
    data: data
  })
}

// 修改餐饮订单
export function updateRestaurantOrder(data) {
  return request({
    url: '/system/restaurantOrder',
    method: 'put',
    data: data
  })
}

// 删除餐饮订单
export function delRestaurantOrder(id) {
  return request({
    url: '/system/restaurantOrder/' + id,
    method: 'delete'
  })
}
